var should = require('should');
var propQuickHandler = require('../../../app/servers/user/handler/propQuickHandler.js');
var config = require('../../config');
var analyze = require('kc-analyze');
var configUtil = require('../../../app/util/configUtil');

suite('测试vipHandler', function () {
    setup(function (done) {
        var analyze_config = configUtil.load('analyze');
        var game_config = configUtil.load('game');
        analyze.initialize({
            host: analyze_config.host,
            server_id: game_config.server_id
        });
        done();
    });

    suite('Handler.prototype.receive', function () {
        test('领取资源商城奖励', function (done) {
            var msg = {};
            msg.quick_consume_id = 5001701;
            msg.quick_type = 3;
            msg.share_id = 9;

            var session = {};
            session.uid = config.role_id;

            var prop_quick_handler = new propQuickHandler();
            prop_quick_handler.diamondQuick(msg, session, function (err, res) {
                console.log('res:', res);
                done();
            });
        });
    });
});
